﻿using UnityEngine;

namespace Resoure.Script.Utilities
{
    public class MyTimer
    {
        public float MaxTime;
        public float CurrentTime;

        public MyTimer(float maxTime)
        {
            MaxTime = maxTime;
        }

        public void resetTimer()
        {
            CurrentTime = MaxTime;
        }

        public void updateMyTimer(float factor)
        {
            CurrentTime -= Time.deltaTime*factor;
        }
    }
}